package com.kt.mes.opc;

import org.eclipse.milo.opcua.sdk.client.api.subscriptions.UaMonitoredItem;
import org.eclipse.milo.opcua.stack.core.types.builtin.DataValue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class OpcBack {
    private final Logger logger = LoggerFactory.getLogger(getClass());
    public void onSubscriptionValue(UaMonitoredItem item, DataValue value) {

        logger.info(
                "subscription value received: item={}, value={}",
                item.getReadValueId().getNodeId(), value.getValue());
    }
}
